<%@ page import="com.google.appengine.api.users.UserService" %>
<%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
<%
String lang = request.getLocale().getLanguage();
String path = request.getContextPath();
String port = "";
if (!"80".equals(request.getServerPort())) {
  port = ":"+request.getServerPort();
}
String basePath = "";
UserService userService = UserServiceFactory.getUserService();
if ("localhost".equals(request.getServerName())) {
  basePath = "http://" + request.getServerName()+ port + "/Gamenori.html?gwt.codesvr=localhost:9997";
  if (!userService.isUserLoggedIn()) {
    basePath = "http://" + request.getServerName()+ port + userService.createLoginURL(basePath);
  }
} else {
  basePath = "http://" + request.getServerName()+ port + "/Gamenori.html";
  if (!userService.isUserLoggedIn()) {
    basePath = userService.createLoginURL("Gamenori.html");
  }
}
System.out.println("basePath=>" + basePath);
%>
<meta http-equiv="refresh" content="0;URL=<%= basePath%>">
